home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / AllLink.h < prev    next >
C/C++ Source or Header  |  1990-05-15  |  572b  |  26 lines

  1. #ifndef ALLLINK_H
  2. #define ALLLINK_H
  3.  
  4. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/AllLink.h,v 3.0 90/05/15 22:43:13 kgorlen Rel $
  5.  
  6. // AllLink.h -- Link used by AllVehicles LinkedList
  7.  
  8. #ifndef MI
  9. #define MI
  10. #endif
  11.  
  12. #include "Link.h"
  13.  
  14. class AllLink: public Link {
  15.     DECLARE_MEMBERS(AllLink);
  16. protected:
  17.     AllLink() {};
  18. public:
  19.     virtual int compare(const Object&) const = 0;
  20.     virtual unsigned hash() const = 0;
  21.     virtual bool isEqual(const Object&) const = 0;
  22.     virtual void printOn(ostream& strm =cout) const = 0;
  23. };
  24.  
  25. #endif
  26.